﻿/*------------------------------------------------
// File Description: InboundInspectProduct DataBase Entity
// Author:			 汪亮
// Create Time:		 2020-04-29 10:10:08
//------------------------------------------------*/

using System;
using System.Data.Entity;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace IOA.MES.DataAccess.Entity
{
    /// <summary>
    /// 入库检组件
    /// </summary>
    [Table(nameof(InboundInspectProduct))]
    public class InboundInspectProduct : BaseEntity
    {
        private string _barCode = string.Empty;
        private string _el2Image;
        private string _ivImage;
        private string _boxImage;
        private string _qLevel;
        private string _workOrderNo;
        private string _orderNo;

        #region Public Property

        ///<Summary>
        /// 入库检ID
        ///</Summary>
        public int InspectId { get; set; }

        ///<Summary>
        /// 订单号
        ///</Summary>
        public string OrderNo
        {
            get { return string.IsNullOrWhiteSpace(_orderNo) ? string.Empty : _orderNo; }
            set { _orderNo = value; }
        }

        ///<Summary>
        /// 工单号
        ///</Summary>
        public string WorkOrderNo
        {
            get { return string.IsNullOrWhiteSpace(_workOrderNo) ? string.Empty : _workOrderNo; }
            set { _workOrderNo = value; }
        }

        ///<Summary>
        /// 组件条码
        ///</Summary>
        public string BarCode
        {
            get { return string.IsNullOrWhiteSpace(_barCode) ? string.Empty : _barCode; }
            set { _barCode = value; }
        }

        ///<Summary>
        /// 判定等级
        ///</Summary>
        public string QLevel
        {
            get { return string.IsNullOrWhiteSpace(_qLevel) ? string.Empty : _qLevel; }
            set { _qLevel = value; }
        }

        ///<Summary>
        /// 接线盒图片
        ///</Summary>
        public string BoxImage
        {
            get { return string.IsNullOrWhiteSpace(_boxImage) ? string.Empty : _boxImage; }
            set { _boxImage = value; }
        }

        ///<Summary>
        /// Iv图片
        ///</Summary>
        public string IvImage
        {
            get { return string.IsNullOrWhiteSpace(_ivImage) ? string.Empty : _ivImage; }
            set { _ivImage = value; }
        }

        ///<Summary>
        /// EL2图片
        ///</Summary>
        public string EL2Image
        {
            get { return string.IsNullOrWhiteSpace(_el2Image) ? string.Empty : _el2Image; }
            set { _el2Image = value; }
        }

        ///<Summary>
        /// 检核状态
        ///</Summary>
        public Enum.InspectProductStatus Status { get; set; }
        #endregion
    }

    public partial class MESContext
    {
        /// <summary>
        /// 入库检组件
        /// </summary>
        public virtual DbSet<InboundInspectProduct> InboundInspectProducts { get; set; }
    }
}
